package graphicsExtended.animation;

import java.awt.Point;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseMotionListener;

/**
 *
 * @author Shimu
 * @date 7-Oct-2012
 */
public abstract class InteractiveAnimationPanel extends AnimationPanel
        implements MouseListener, MouseMotionListener {

    public InteractiveAnimationPanel(int width, int height) {
        super(width, height);
    }
    
    /*
    private ToolTipModifier toolTipModifier = new ToolTipModifier() {

        @Override
        public Point getToolTipLocation(MouseEvent e) {
            return null;
        }

        @Override
        public String getToolTipText() {
            return "";
        }
    }; */

    /**
     * @return the toolTipModifier
     
    public ToolTipModifier getToolTipModifier() {
        return toolTipModifier;
    }*/

    /**
     * @param toolTipModifier the toolTipModifier to set
     
    public void setToolTip(ToolTipModifier toolTipModifier) {
        this.toolTipModifier = toolTipModifier;
        this.setToolTipText(this.toolTipModifier.getToolTipText());
    }*/

    /*
    @Override
    public Point getToolTipLocation(MouseEvent e) {
        return this.toolTipModifier.getToolTipLocation(e);
    }*/

    @Override
    public final void run() {        
        super.addMouseListener(this);
        super.addMouseMotionListener(this);
        super.run();
        
    }    
}
